/**
 * @filename:SysFile 2022年1月27日
 * @project Wonder wallet Framework  V1.0
 * Copyright(c) 2020 LuZhongren Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.admin.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;


/**   
 * @Description:TODO(文件管理实体类)
 * 
 * @version: V1.0
 * @author: LuZhongren
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_file")
@ApiModel(value="file对象", description="上传文件管理表")
public class SysFile extends Model<SysFile> {

	private static final long serialVersionUID = 1643426230641L;
	
	@TableId(value ="id", type = IdType.AUTO)
	@ApiModelProperty(name = "id" , value = "")
	private Integer id;
    
 	@TableField(value = "filepath")
	@ApiModelProperty(name = "filepath" , value = "图片路径")
	private String filepath;
    
 	@TableField(value = "hash")
	@ApiModelProperty(name = "hash" , value = "文件hash值")
	private String hash;
    
 	@TableField(value = "create_time",fill = FieldFill.INSERT)
	@ApiModelProperty(name = "create_time" , value = "创建时间")
	private Date create_time;
    
 	@TableField(value = "member_id")
	@ApiModelProperty(name = "member_id" , value = "用户id")
	private Integer member_id;
    

	@Override
    public Serializable pkVal() {
        return this.id;
    }
}
